package cn.regexp.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

import java.io.Serializable;

@Getter
@Setter
public class QueryObject implements Serializable {
    /**
     * 当前页
     */
    private int pageNum = 1;
    /**
     * 每页条数
     */
    private int pageSize = 10;
    /**
     * 关键词
     */
    private String keyword;

    public String getKeyword() {
        return StringUtils.hasLength(keyword) ? keyword : null;
    }
}
